package com.example.administrator.maizuofilm.httputils;

import java.util.HashMap;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;

/**
 * Created by Administrator on 2016/7/12.
 */
public interface IRetrofitHttp {
    @GET("{path}")
    Call<ResponseBody> getString(@Path("path") String path, @QueryMap HashMap<String, String> map);

    @GET(httputils.UrlConfig.MOVIE_DETAILS_FIRST+"{path}"+httputils.UrlConfig.MOVIE_DETAILS_LAST)
    Call<ResponseBody> getMovieDetails(@Path("path") String path);

    @GET(httputils.UrlConfig.COMMENT_FIRST+"{path}"+ httputils.UrlConfig.COMMENT_LAST)
    Call<ResponseBody> getComment(@Path("path") String path);

    @GET(httputils.UrlConfig.COMMENT_FIRST+"{path}"+ httputils.UrlConfig.COMMENT_COMM)
    Call<ResponseBody> getDetailsComment(@Path("path") String path);
}
